package com.kun.service;

import com.kun.common.Result;
import com.kun.controller.dto.UserDto;
import com.kun.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    public List<User> selectAllUsers();

    public Integer saveUser(User user);

    public Integer deleteUserById(Integer id);

    public List<User> queryUsersByCondition(Map map);

    public List<User> calCountByConditions(Map map);

    public Result login(UserDto userDto);

    public Result updateUser(User user,String old_username);

    public Result register(UserDto userDto);

    public User selectUserById(int id);

}
